-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OIDC make token iat claim optional via config property #39249
OIDC make token iat claim optional via config property #39249
Conversation
wesleysalimansdvb
commented
Mar 7, 2024
•
edited by geoand
Loading
edited by geoand
- Closes: No way to configure iat claim as optional in quarkus-oidc #39215
extensions/oidc/runtime/src/main/java/io/quarkus/oidc/OidcTenantConfig.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wesleysalimansdvb Thanks for the PR, I'd like to propose to have it named everywhere as issuedAtRequired
and also document that this property will be ignored for the ID token verification - in OidcIdentityProvider
there must be a false
value passed when ID token is being verified.
Also, please update OidcRecorder
to throw a configuration exception if this property is true and the quarkus.oidc.token-age
is also true.
Thanks
@sberyozkin I processed your feedback :) |
extensions/oidc/runtime/src/main/java/io/quarkus/oidc/OidcTenantConfig.java
Outdated
Show resolved
Hide resolved
extensions/oidc/runtime/src/main/java/io/quarkus/oidc/OidcTenantConfig.java
Outdated
Show resolved
Hide resolved
extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcIdentityProvider.java
Outdated
Show resolved
Hide resolved
@sberyozkin thanks for the good feedback, I learned a lot by contributing to the quarkus codebase! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @wesleysalimansdvb, I'll suggest a few more tiny updates, and we'll merge, please squash the commits if you don't mind
extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcProvider.java
Outdated
Show resolved
Hide resolved
extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcProvider.java
Outdated
Show resolved
Hide resolved
extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcRecorder.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wesleysalimansdvb Very last (I promise :-)) 3 suggestions are proposed, thanks
update configuration exception and rename variable Rewording documentation and always check id token iat oidc rename variable name throw configuration property error
8b9f85c
to
4d825af
Compare
@sberyozkin Squashed the commits in to 1 commit, I hope everything is alright like this. If not, I'll see :p Thanks! |
Status for workflow
|